package com.nq.activaity.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 用户积分记录表
 * @Author: jeecg-boot
 * @Date:   2024-11-05
 * @Version: V1.0
 */
@Data
@TableName("st_user_integral_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class StUserIntegralRecord implements Serializable {
    private static final long serialVersionUID = 1L;

    // 支出
    public static final Integer EXPENDITURE_TYPE = 0;
    // 收入
    public static final Integer INCOME_TYPE = 1;


	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    private String id;
	/**用户ID*/
	@Excel(name = "用户ID", width = 15)
    private Integer userId;
	/**积分类型*/
	@Excel(name = "积分类型", width = 15)
    private String type;
	/**收支类型 0 支出 1 收入*/
	@Excel(name = "收支类型 0 支出 1 收入", width = 15)
    private Integer income;
	/**积分数量*/
	@Excel(name = "积分数量", width = 15)
    private BigDecimal integralNum;
	/**之前的积分数量*/
	@Excel(name = "之前的积分数量", width = 15)
    private BigDecimal integralNumBefore;
	/**之后的积分数量*/
	@Excel(name = "之后的积分数量", width = 15)
    private BigDecimal integralNumAfter;
    /**
     * 类型对应的数据ID
     */
    private Integer referId;
    /**创建人*/
    private String createBy;
    /**创建日期*/
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
}
